package cn.bdqn.dao.questionBank;


import cn.bdqn.pojo.questionBank.AccountType;
import cn.bdqn.vo.questionBank.AccountType.AccountTypeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AccountTypeDao extends BaseMapper<AccountType> {

    /**
     * 获取当前科目类型的试卷和题目数量
     * @return
     */
    List<Integer> selectAccountTypeNumberOfSubjectAndTestPaper(Integer accountTypeId);

    /**
     * 通过id删除该数据
     * @param accountTypeId
     * @return
     */
    Integer deleteAccountTypeByAccountTypeId(Integer accountTypeId);

    /**
     * 查询所有科目和行业信息
     * @return
     */
    List<AccountTypeVo> selectIndustryAccountType();
}

